package com.eightbears.beboy.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eightbears.beboy.R;
import com.eightbears.beboy.base.view.citypicker.model.City;

/**
 * @创建者 Administrator
 * @创建时间 Created by Administrator on 2017/4/1.
 * @描述 侧边栏关注商家适配器
 * @更新 $Author$
 * @更新时间 2017/4/1
 * @更新描述 ${TODO}.
 */

public class AgencyCityAdapter extends BaseQuickAdapter<City, BaseViewHolder> {

    private Context mContext;

    public AgencyCityAdapter(Context context) {
        super(R.layout.item_popupwindow_list, null);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, City item) {
        baseViewHolder.setText(R.id.tv_popupwindow_title, item.getName());
        baseViewHolder.addOnClickListener(R.id.ll_item_popup);
    }
}


